package com.apt.action;

import java.util.List;
import java.util.Map;

import com.apt.common.AptException;
import com.apt.domain.InstitutionMaster;
import com.apt.facade.DataStoreHelper;

public class DisplayInstitutionAction extends AptBaseAction {

	private Map<Integer,String> colleges;

	public String getCollegeList() {

		try {
			colleges = DataStoreHelper.getColleges();
		} catch (AptException ex) {
			addActionError(getText("error.CollegeId"));
			return "error";

		}
		return "success";

	}

	public Map<Integer,String> getColleges() {
		return colleges;
	}

}
